const seq = require('sequelize/index')
const config = require('../../config')
const sequelize = new seq(
  config.sqldb.database,
  config.sqldb.username,
  config.sqldb.password,
  {
    dialect: config.sqldb.db,
    host: config.sqldb.host,
    port: config.sqldb.port,
    define: {
      underscored: true
    }
  }
)
module.exports = {
  sequelize
}
